{extend name='/forgot/forgota' /}
{block name='main'}
<!--登录开始-->
<div class="login_content">
    <div class="login_auto">
        <div class="login_top">
            <a href=""><img src="/public/static/password/logo.gif" width="190" height="88" alt=""></a>
            <h1>找回密码</h1>
        </div>
        <div class="forget_body">
                            <div class="forget_top">
                    <div class="step">
                        <div class="num current">1</div>
                        <div class="line current"></div>
                        <div class="num current">2</div>
                        <div class="line current"></div>
                        <div class="num current">3</div>
                        <div class="line current"></div>
                        <div class="f_success"></div>
                    </div>
                    <div class="forget_text">
                        <span class="current">填写帐号</span>
                        <span class="current">验证身份</span>
                        <span class="current">重设密码</span>
                        <span class="last">完成</span>
                    </div>
                </div>
                <div class="forget_cent">
                    <form id="fp_reset_fm" name="fp_reset_fm" method="post" action="{:url('index/Forgot/forgotcc')}">
                        <div class="forget_u">
                            <div class="forget_list">
                                <span>设置新密码：</span>
                                <div class="yzm borderd"><input type="password" id="new_password" name="new_password" class="w230" style="color:#ccc;" placeholder="6-20大小写英文字母、数字或符号"></div>
                                <div class="k_em"><div class="tip err" id="new_password_tip" style="display:none">请输入密码！</div></div>
                            </div>
                            <div class="forget_list">
                                <span>确认密码：</span>
                                <div class="yzm borderd"><input type="password" id="new_repassword" name="new_repassword" class="w230" style="color:#ccc;" placeholder="请再次输入密码"></div>
                                <div class="k_em"><div class="tip err" id="new_repassword_tip" style="display:none;">和新密码不一致，请重新输入</div></div>
                            </div>
                            <div class="forget_list">
                                <span>&nbsp;
                                    <input name="username_auth" type="hidden" id="username_auth" value="N3i19gkjg2VdVmN8M4E8kxw1Zv1lhGKFiYOGglIlrLTlLuKIrvUL">
                                    <input name="act" type="hidden" id="act" value="check_mobile">
                                </span>
                                <div class="login_btn left"><a href="javascript:void(0)" id="to_done_step">下一步</a></div>
                            </div>
                        </div>                   
                    </form>                
                </div>
            
        </div>
    </div>
</div>
<!--登录结束-->
<!-- 底部开始 -->
<!--底部开始-->
<div  class="login_content">

    <div class="footer_auto">

        <div class="footer_bot">

            <p class="link"><a target="_blank" href="javascript:void(0)">关于波奇</a><span>|</span><a target="_blank" href="javascript:void(0)">友情链接</a><span>|</span><a target="_blank" href="javascript:void(0)">诚聘英才</a><span>|</span><a target="_blank" href="javascript:void(0)">联系我们</a><span>|</span><a target="_blank" href="javascript:void(0)">网站地图</a><span>|</span><a target="_blank" href="javascript:void(0)">意见反馈</a><span>|</span><a target="_blank" href="javascript:void(0)">帮助中心</a><span>|</span>客服热线：400-820-6098</p>

            <p class="copy">Copyright © 2007-2017 Boqii.com All Rights Reserved 光橙（上海）信息科技有限公司 版权所有 <a href="http://www.miibeian.gov.cn/" target="_blank">沪ICP备13034501号-2</a>&nbsp;增值电信业务经营许可证：<a href="http://www.miibeian.gov.cn/" target="_blank">沪B2-20140120</a></p>

            <p>

                <a href='http://www.sgs.gov.cn/lz/licenseLink.do?method=licenceView&entyId=20131022163114962' target='_blank' rel='nofollow'><img src='/public/static/image/register/foot_gs.png' width="100" height="35"></a>

                <a href="http://www.boqii.com/ads.php" target="_blank" rel="nofollow"><img src="/public/static/image/register/foot_cx.png" width="100" height="35"></a>

                <a href="https://ss.knet.cn/verifyseal.dll?sn=e14111831011556282oicb000000&ct=df&a=1&pa=0.1636424780320953" target="_blank" rel="nofollow"><img src="/public/static/image/register/foot_kx.png" width="100" height="35"></a>

                <a href="http://www.zx110.org/" target="_blank" rel="nofollow"><img src="/public/static/image/register/foot_zx.png" width="100" height="35"></a>

            </p>

        </div>

    </div>

</div>
<script>

    $('#new_password').blur(function() {
                check_new_password();
            });
            $('#new_repassword').blur(function() {
                check_new_repassword();
            });
            function check_new_password() {
                $('#new_password_tip').attr('style', 'display:none');
                var new_password = $('#new_password').val();
                if (new_password == '' || new_password == '6-20大小写英文字母、数字或符号') {
                    $('#new_password_tip').text('请输入密码！');
                    $('#new_password_tip').attr('style', 'display:block');
                    $('#new_password_tip').attr('class', 'tip err');
                    return false;
                }
                var reg = /^\w{6,20}$/;
                if (!reg.test(new_password)) {
                    $('#new_password_tip').text('请输入正确的密码格式！');
                    $('#new_password_tip').attr('style', 'display:block');
                    $('#new_password_tip').attr('class', 'tip err');
                    return false;
                }
                $('#new_password_tip').text('');
                $('#new_password_tip').attr('style', 'display:block');
                $('#new_password_tip').attr('class', 'tip suc');
            }
            function check_new_repassword() {
                $('#new_repassword_tip').attr('style', 'display:none');
                var new_repassword = $('#new_repassword').val();
                if (new_repassword == '' || new_repassword == '请再次输入密码') {
                    $('#new_repassword_tip').text('请再次输入密码！');
                    $('#new_repassword_tip').attr('style', 'display:block');
                    $('#new_repassword_tip').attr('class', 'tip err');
                    return false;
                }
                var reg = /^\w{6,20}$/;
                if (!reg.test(new_repassword)) {
                    $('#new_repassword_tip').text('请输入正确的密码格式！');
                    $('#new_repassword_tip').attr('style', 'display:block');
                    $('#new_repassword_tip').attr('class', 'tip err');
                    return false;
                }
                var new_password = $('#new_password').val();
                if (new_repassword !== new_password) {
                    $('#new_repassword_tip').text('您输入的两次密码不一致！');
                    $('#new_repassword_tip').attr('style', 'display:block');
                    $('#new_repassword_tip').attr('class', 'tip err');
                    return false;
                }
                $('#new_repassword_tip').text('');
                $('#new_repassword_tip').attr('style', 'display:block');
                $('#new_repassword_tip').attr('class', 'tip suc');
            }
            $('#to_done_step').click(function() {
                $('#new_password_tip').attr('style', 'display:none');
                var new_password = $('#new_password').val();
                if (new_password == '' || new_password == '6-20大小写英文字母、数字或符号') {
                    $('#new_password_tip').text('请输入密码！');
                    $('#new_password_tip').attr('style', 'display:block');
                    $('#new_password_tip').attr('class', 'tip err');
                    return false;
                }
                var reg = /^\w{6,20}$/;
                if (!reg.test(new_password)) {
                    $('#new_password_tip').text('请输入正确的密码格式！');
                    $('#new_password_tip').attr('style', 'display:block');
                    $('#new_password_tip').attr('class', 'tip err');
                    return false;
                }
                $('#new_password_tip').text('');
                $('#new_password_tip').attr('style', 'display:block');
                $('#new_password_tip').attr('class', 'tip suc');
                $('#new_repassword_tip').attr('style', 'display:none');
                var new_repassword = $('#new_repassword').val();
                if (new_repassword == '' || new_repassword == '请再次输入密码') {
                    $('#new_repassword_tip').text('请再次输入密码！');
                    $('#new_repassword_tip').attr('style', 'display:block');
                    $('#new_repassword_tip').attr('class', 'tip err');
                    return false;
                }
                var reg = /^\w{6,20}$/;
                if (!reg.test(new_repassword)) {
                    $('#new_repassword_tip').text('请输入正确的密码格式！');
                    $('#new_repassword_tip').attr('style', 'display:block');
                    $('#new_repassword_tip').attr('class', 'tip err');
                    return false;
                }
                var new_password = $('#new_password').val();
                if (new_repassword !== new_password) {
                    $('#new_repassword_tip').text('您输入的两次密码不一致！');
                    $('#new_repassword_tip').attr('style', 'display:block');
                    $('#new_repassword_tip').attr('class', 'tip err');
                    return false;
                }
                $('#new_repassword_tip').text('');
                $('#new_repassword_tip').attr('style', 'display:block');
                $('#new_repassword_tip').attr('class', 'tip suc');
                $('#fp_reset_fm').submit();
            });
        
</script>
{/block}
<!--底部结束-->